package router

import (
	"game-hub/handlers"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("add", handlers.Add)
	r.GET("list", handlers.List)
	r.GET("find", handlers.Find)
	r.POST("down", handlers.Down)
	return r
}
